package com.hoshino.momochi.service.Impl;

import com.hoshino.momochi.mapper.MessageListMapper;
import com.hoshino.momochi.model.domain.MessageList;
import com.hoshino.momochi.service.MessageListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageListServiceImpl implements MessageListService {

    @Autowired
    private MessageListMapper messageListMapper;

    @Override
    public List<MessageList> getNowUserMessageUserDetails(Long uid) {
        return messageListMapper.getNowUserMessageUserDetails(uid);
    }

    @Override
    public void addMessageList(MessageList messageList) {
        messageListMapper.addMessageList(messageList);
    }

    @Override
    public Long checkMessageListExist(Long uid, Long tid) {
        return messageListMapper.checkMessageListExist(uid, tid);
    }

    @Override
    public void delExistMessageList(Long uid, Long tid) {
        messageListMapper.delExistMessageList(uid, tid);
    }

    @Override
    public void updateCreateTime(MessageList messageList) {
        messageListMapper.updateCreateTime(messageList);
    }
}
